<script setup>
// let title = computed(() => {
//   // return import.meta.env.VITE_APP_DEMO;
//   return process.env.VITE_APP_TITLE || 'Default Title'
// })

let env = import.meta.env;
console.log(env);

// 可以
// let title = process.env.VITE_APP_DEMO || "Default Title";
let title = import.meta.env.VITE_APP_DEMO || "Default Title";
console.log(title);

// 可以
let demo = import.meta.env.VITE_APP_DEMO || "Default Title";
console.log(demo);
</script>

<template>
  <h1>scss样式</h1>

  <div>
    <!-- <button type="primary">默认按钮</button> -->
    <div class="test">测试字体大小</div>
  </div>
</template>

<style lang="scss" scoped>
.test {
  font-size: 40px;
  color: $defaultColor;
}
</style>
